﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace rmTest.Common.AttrUtil
{
    /// <summary>
    /// 映射关系属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class EnumMapAttribute : Attribute
    {
        public EnumMapAttribute(Type type, string dataField)
        {
            this.EnumType = type;
            this.DataField = dataField;
        }
        /// <summary>
        /// 对应的模型字段
        /// </summary>
        public string DataField { get; set; }
        /// <summary>
        /// 映射关系枚举
        /// </summary>
        public Type EnumType { get; set; }
    }

     
}
